package load2;

import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        loading loading1 = new loading();
        System.out.println("设置你的用户名及密码:");
        Scanner sc =new Scanner(System.in);
        loading1.setName(sc.nextLine());
        loading1.setPassword(sc.nextLine());
        input(loading1.getName(),loading1.getPassword());
    }
    public static void input(String name ,String password){
        loading loading2 = new loading();
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入你的用户名:");
        loading2.setName(sc.nextLine());
        System.out.println("请输入你的密码:");
        loading2.setPassword(sc.nextLine());
        loading2.login(name,password);
    }
}
